package comgame.components;

import com.almasb.fxgl.entity.component.Component;

public class ItemComponent extends Component {
    private final String itemName;  // 显示名称
    private final int price;       // 基础价格
    private final String itemType;     // 类型标识（HELMET/SWORD等）


    // 构造函数
    public ItemComponent(String itemName, int price, String itemType) {
        this.itemName = itemName;
        this.price = price;
        this.itemType = itemType;
    }
    // Getters方法.
    public String getItemName() {
        return itemName;
    }
    public int getPrice() {
        return price;
    }
    public String getItemType() {
        return itemType;
    }
}
